import http from "../untils/http"
import type { ICar,ICarSearch,ICarMoney } from "@/untils/type"
// 车辆进场登记
export const carInAPI = (data: ICar) => {
  return http({
    url: '/cash/in',
    method: 'post',
    data
  })
}

//车辆出场登记
export const carOutAPI = (data: ICar) => {
  return http({
    url: '/cash/out',
    method: 'post',
    data
  })
}

//车辆进出场查询
export const carSearchAPI = (data:ICarSearch) => {
  return http({
    url: '/cash/list',
    method: 'get',
    data
  })
}

//收费登记
export const carMoneyAPI=(data:ICarMoney)=>{
  return http({
    url: '/cash/mark',
    method: 'post',
    data
  })

}